import layout from '@/layout'
export default {
  path: '/park',
  name: 'park',
  component: layout,
  permission: 'park',
  meta: { title: '园区管理', icon: 'el-icon-office-building' },
  children: [{
    path: 'building',
    name: 'building',
    permission: 'park:building',
    meta: { title: '楼宇管理' },
    component: () => import('@/views/park/Building/index.vue')
  },
  {
    path: 'enterprise',
    name: 'enterprise',
    permission: 'park:enterprise',
    meta: { title: '企业管理' },
    component: () => import('@/views/park/Enterprise/index.vue'),
    children: [{
      path: 'add/:id?',
      permission: 'park:enterprise:add_edit',
      name: 'enterpriseDetail',
      meta: { title: '企业管理CU' },
      component: () => import('@/views/park/Enterprise/add.vue')
    },
    {
      path: 'info/:id?',
      permission: 'park:enterprise:query',
      name: 'enterpriseInfo',
      meta: { title: '企业管理R' },
      component: () => import('@/views/park/Enterprise/detail.vue')
    }]
  }]
}
